﻿using Microsoft.AspNetCore.Authorization;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyCore.Authorizations
{
    /// <summary>
    /// 定义一个最小年龄的策略
    /// </summary>
    public class MinimumAgeRequirement:IAuthorizationRequirement
    {
        public int MinimumAge { get; }
        public MinimumAgeRequirement(int minimumAge) {
            MinimumAge = minimumAge;
        }
    }
}
